home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Library
/
RoseWare - Network Support Library.iso
/
apidev
/
tpapi.exe
/
EXAMPLES
/
KEYPASS.PAS
< prev
next >
Wrap
Pascal/Delphi Source File
|
1994-01-14
|
645b
|
39 lines
program KEYPASS;
uses
crt,
nwvar,
nwerror,
nwbindry;
var
Bindery : BinderyOBJ;
EncryptKey : TEncryptKey;
ObjectID : OT_BinderyID;
Password : TPassword;
begin
Bindery.Init (true);
ObjectID := $02000001;
Password := '';
if Bindery.GetEncryptedKey (ObjectID, Password, EncryptKey) <> SUCCESSFUL then
writeln ('Keyed functions not available')
else
begin
if Bindery.KeyedVerifyPassword ('GUEST', OT_User, EncryptKey) = SUCCESSFUL then
writeln ('Invalid password')
else
writeln ('Password verified');
end;
Bindery.Done;
end.